package com.gopay.common.domain.user.identify;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.gopay.common.domain.BaseEntity;

/**
 * 身份证认证渠道信息
 * 
 * @PersCertChannelDTL.java
 * @author dak.wang
 * @2016年5月11日 下午3:08:42 www.gopay.com.cn Inc.All rights reserved.
 */
@Entity
@Table(name = "PERS_CERT_CHANNEL_INFO")
public class PersCertChannelInfo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    private Long id;
    private String code;
    private String name;
    private String descr;
    private String status;
    private String createdOperId;
    private Date createdTs;
    private String lastUpdOperId;
    private Date lastUpdTs;
    private Integer version;
    private String bankCode;

    @Id
    @SequenceGenerator(name = "PERS_CERT_CHANNEL_DTL_SEQ_GENERATOR", sequenceName = "PERS_CERT_CHANNEL_DTL_SEQ", allocationSize = 1)
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "PERS_CERT_CHANNEL_DTL_SEQ_GENERATOR")
    @Column(name = "ID")
    public Long getId() {
        return id;
    }

    @Column(name = "CODE", length = 20)
    public String getCode() {
        return code;
    }

    @Column(name = "NAME", length = 10)
    public String getName() {
        return name;
    }

    @Column(name = "DESCR", length = 20)
    public String getDescr() {
        return descr;
    }

    @Column(name = "STATUS", length = 2)
    public String getStatus() {
        return status;
    }

    @Column(name = "CREATED_OPER_ID", length = 10)
    public String getCreatedOperId() {
        return createdOperId;
    }

    @Column(name = "CREATED_TS")
    @Temporal(TemporalType.TIMESTAMP)
    public Date getCreatedTs() {
        return createdTs;
    }

    @Column(name = "LAST_UPD_OPER_ID", length = 10)
    public String getLastUpdOperId() {
        return lastUpdOperId;
    }

    @Column(name = "LAST_UPD_TS")
    @Temporal(TemporalType.TIMESTAMP)
    public Date getLastUpdTs() {
        return lastUpdTs;
    }

    @Column(name = "VERSION", precision = 22, scale = 0)
    public Integer getVersion() {
        return version;
    }
    
    @Column(name = "BANK_CODE", length = 20)
    public String getBankCode() {
        return bankCode;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setDescr(String descr) {
        this.descr = descr;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public void setCreatedOperId(String createdOperId) {
        this.createdOperId = createdOperId;
    }

    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }

    public void setLastUpdOperId(String lastUpdOperId) {
        this.lastUpdOperId = lastUpdOperId;
    }

    public void setLastUpdTs(Date lastUpdTs) {
        this.lastUpdTs = lastUpdTs;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public void setBankCode(String bankCode) {
        this.bankCode = bankCode;
    }

}
